﻿@using Orchard.Utility.Extensions;
@using Contrib.BSCarouselSlide.Models;
@using Orchard.ContentManagement;
@using Orchard.DisplayManagement.Shapes;
@{
    var theModel = @Model.ContentItem.BSCarouselSlidePart;
    bool HasText = theModel.HasText;
    bool HasImage = theModel.HasImage;
    string span = (HasImage) ? "col-sm-5" : "span12"; 

    
}
@if (HasText )
{
    <div class="@span @theModel.TextClass">
        @Model.Html
    </div>
}